home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Chess++ ƒ / CChessPieces ƒ / CRook.h < prev   
Text File  |  1993-04-25  |  482b  |  22 lines

  1. /****
  2.  * CRook.h
  3.  *
  4.  *    Class representing the Rook.
  5.  *
  6.  *    Copyright © 1993 Steven J. Bushell. All rights reserved.
  7.  *
  8.  ****/
  9.  
  10. #define    _H_CRook            /* Include this file only once */
  11. #include "CObject.h" 
  12.  
  13. class CRook : public CChessPiece {
  14. public:
  15.     Boolean        canCastle;
  16.  
  17.     void        IRook(Boolean);
  18.     void        Draw(short rank, short file);
  19.     CIconHandle    GetCicnHandle(void);
  20.     Boolean        IsValidMove(CChessBoard *aBoard, short newRank, short newFile);
  21.     void        RegisterMove(short rank, short file);
  22. };